package didi.hcp.questionrobot.bo;

import didi.hcp.questionrobot.group.AddGroup;
import didi.hcp.questionrobot.group.DeleteGroup;
import didi.hcp.questionrobot.group.UpdateGroup;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SopBO {

    @NotNull(message = "ID不能为空",groups = {UpdateGroup.class,DeleteGroup.class})
    private Integer id;

    @NotBlank(message = "标题不能为空",groups = {AddGroup.class,UpdateGroup.class})
    private String title;

    @NotBlank(message = "内容不能为空",groups = {AddGroup.class,UpdateGroup.class})
    private String content;

    private String categoryName;

    @NotNull(message = "分类不能为空",groups = {AddGroup.class,UpdateGroup.class})
    private Integer categoryId;

    @NotBlank(message = "触发词不能为空",groups = {AddGroup.class,UpdateGroup.class})
    private String triggerWord;

    @NotBlank(message = "处理人不能为空",groups = {AddGroup.class,UpdateGroup.class})
    private String handler;

    @NotBlank(message = "删除标志不能为空",groups = {DeleteGroup.class})
    private Integer isDelete;


}
